<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>安装</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="sdo.requirements.html">需求</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sdo.configuration.html">运行时配置</a></div>
 <div class="up"><a href="sdo.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="sdo.installation" class="section">
  <h2 class="title">安装</h2>
  <p class="para">
   安装此 PECL 扩展相关的信息可在手册中标题为
<a href="install.pecl.html" class="link">PECL
扩展的安装</a>章节中找到。更多信息如新的发行版本、下载、源文件、
维护人员信息及变更日志等，都在此处：
   <a href="http://pecl.php.net/package/sca_sdo" class="link external">&raquo;&nbsp;http://pecl.php.net/package/sca_sdo</a>.
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    Earlier versions of the SDO extension required a separate shared
    library for the XML DAS. This is now obsolete and any references to
    <var class="filename">php_sdo_das_xml.dll</var> or
    <var class="filename">sdo_das_xml.so</var> should be removed from your <var class="filename">php.ini</var>.
   </p>
  </p></blockquote>
  <div class="procedure">
   <strong class="title">Unix systems</strong>
   <ol type="1"><li>
    <p class="para">
     The three SDO components - the SDO core, the XML DAS and the
     Relational DAS - are packaged together with <em>Service Component 
     Architecture (SCA)</em> into one PECL project, SCA_SDO, so you can 
     download SCA and all three parts of SDO with the command:
     <div class="example-contents screen">
<div class="cdata"><pre>
pecl install SCA_SDO
</pre></div>
     </div>
    </p>
    <p class="para">
     This command will build the SDO shared library as well as
     installing the PHP files that make up SCA and the SDO 
     Relational DAS.
    </p>
    <p class="para">
     If you want to use the latest beta version, then instead run:
     <div class="example-contents screen">
<div class="cdata"><pre>
pecl install SCA_SDO-beta
</pre></div>
     </div>
    </p>
   </li>
   <li>
    <p class="para">
     The <strong class="command">pecl</strong> command automatically installs the SDO
     module into your PHP extensions directory. To enable the SDO extension
     you must add the following line to <var class="filename">php.ini</var>:
     <div class="example-contents screen">
<div class="cdata"><pre>
extension=sdo.so
</pre></div>
     </div>
    </p>
    <p class="para">
     For more information about building PECL packages, consult the
     <a href="install.pecl.html" class="link">PECL installation</a>
     section of the manual.
    </p>
   </li>
  </ol></div>



  <div class="procedure">
   <strong class="title">Building SDO on Linux</strong>
   <p class="para">
    This section describes how to build the SDO core and XML DAS on
    Linux. You would only need to know how to do this if you wish to
    build a recent version that you have checked out of SVN.
   </p>
   <ol type="1"><li>
    <p class="para">
     Change to the main extension directory:
     <strong class="command">cd &lt; wherever your sdo code is &gt;</strong>
    </p>
   </li>
   <li>
    <p class="para">
     Run <strong class="command">phpize</strong>, which will set up the environment
     to compile SDO.
    </p>
   </li>
   <li>
    <p class="para">
     Next, run <strong class="command">./configure; make; make install</strong>.
     Please note, you may need to login as root to install the extension.
    </p>
   </li>
   <li>
    <p class="para">
     Make sure that the module is loaded by PHP, by adding
     <var class="filename">extension=sdo.so</var>
     to your <var class="filename">php.ini</var> file.
    </p>
   </li>
  </ol></div>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="sdo.requirements.html">需求</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sdo.configuration.html">运行时配置</a></div>
 <div class="up"><a href="sdo.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
